package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 *  微信用户
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2018-12-15 22:20:07
 */
@Data
@TableName("user")
public class WxUser implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;

	private String platform;

	private String userNo;

	private String nickName;

	private String realName;

	private String phonenum;

	private String faceUrl;

	private String province;

	private String city;

	private String sessionKey;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastActiveTime;

	private String lastLoginIp;

	private String openId;

	private String unionId;

	private Integer userType;

	private Integer shopId;

	private Integer isAdmin;

	private Integer isTest;

	private Integer sysUserId;

	@TableField(exist = false)
	private String shopName;

	@TableField(exist = false)
	private String sysUserName;

	@TableField(exist = false)
	private Integer clearType;
}
